package org.dromara.business.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.domain.Advertising;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 广告业务对象 advertising
 *
 * @author zlj
 * @date 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Advertising.class, reverseConvertGenerate = false)
public class AdvertisingBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long advertisingId;

    /**
     * 城市
     */
//    @NotBlank(message = "城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;

    /**
     * 广告路径
     */
//    @NotBlank(message = "广告路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String state;

    /**
     * 播放次数
     */
//    @NotNull(message = "播放次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long number;

    /**
     * 区域编号
     */
    private String cityId;

    /**
     * 审批备注
     */
    private String remarks;

    /**
     * 1：使用次数 2：微信支付
     */
//    @TableField(exist = false)
//    private String paymentMeans;
    /**
     * 过期时间
     */
    private Date expirationDate;


}
